<?php

/**
* Created by PhpStorm.
 * User: kphcdr
 * Date: 16/3/6
 * Time: 上午1:06
 */

namespace app\admin\ctrl;


class commonCtrl extends  \app\admin\ctrl\baseCtrl
{
	public function __construct()
	    {
		$sessinClass = new \ppphp\session();
		$this->id = $sessinClass->get('id');
		$this->username = $sessinClass->get('username');
		if(!$this->id) {
			redirect('/admin/login/index');
		}
		$this->assign('username',$this->username);
		parent::__construct();
	}
}
